﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace DistributeTransaction.Models
{
    public class Payment
    {
        public Payment()
        {
        }

        public Payment(decimal amount)
        {
            Amount = amount;
        }

        [Key]
        [Display(Name = "PaymentId")]
        public int PaymentId { get; set; }

        [Display(Name = "AccountId")]
        public int AccountId { get; set; }

        [Display(Name = "OrderId")]
        public int OrderId { get; set; }

        [Display(Name = "Amount")]
        [Range(0.01, double.MaxValue, ErrorMessage = "Amount should be greate than zero")]
        public decimal Amount { get; set; }

        [Display(Name = "Status")]
        public string Status { get; set; }

        [Display(Name = "ProcessDate")]
        public DateTime? ProcessDate { get; set; }

        [Display(Name = "Account Name")]
        public string HoldName { get; set; }

        [Display(Name = "Card Number")]
        public string CardNumber { get; set; }

        [Display(Name = "Card Type")]
        public string CardType { get; set; }
    }
}